package club.hicode.daydayup.single;

/**
 * 测试
 *
 * @author Liu Chunfu
 * @date 2018-06-13 下午5:23
 **/
public class SingleTon1 {

    private static class SingletonHolder {
        private static SinglePerson person = new SinglePerson();
    }

    public static SinglePerson singlePerson() {
        return SingletonHolder.person;
    }

    private SingleTon1() {
        System.out.println("inti ....");
    }
}
